package com.castle.fortress.admin.member.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 会员收藏表 实体类
 *
 * @author castle
 * @since 2023-02-14
 */
@Data
@ApiModel(value = "studyCollect对象", description = "会员收藏表")
public class MemberCollectDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "id")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "00 课程")
	@JsonProperty("collectType")
	private String collectType;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "会员ID")
	@JsonProperty("memberId")
	private Long memberId;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "课程ID")
	@JsonProperty("targetId")
	private Long targetId;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "收藏时间")
	@JsonProperty("collectTime")
	private Date collectTime;
	@ApiModelProperty(value = "会员名称")
	@JsonProperty("memberName")
	private String memberName;
	@ApiModelProperty(value = "课程名称")
	@JsonProperty("targetName")
	private String targetName;

}
